<html>

<head>
<link rel="stylesheet" type="text/css" href="${def:context}/default.css" />
<title>Select Table</title>

	<script language="javascript">
	
		var currStyle="";
	
		function rowOn(obj) {
			currStyle = obj.className;
			obj.className="hilite";
		}
		
		function rowOff(obj) {
			obj.className=currStyle
		}
		
		function closePickList()
		{
			parent.pickClose();
		}	
		function selectItem()
		{
			var id = "";
			var name = "";
			var members = document.getElementsByName("member_id");
			if(members){
				for(var i=0;i<members.length;i++){
					if(members[i].checked == true){
						id += members[i].value + ";";
						name += document.getElementById("s"+members[i].value).innerHTML + ";";
					}
				}
			}
			parent.pickSelect(id, name);
			closePickList();
		}	
	</script>

</head>

<body class="pickListBody">
<center>
	<div class="pickListBody" style="width: 100%; height: 170px; overflow: auto;">

	<!--START GRID-->
	<table class="grid" width="100%" cellspacing="1">
		<rows>
		<tr ${fld:_rowStyle} onmouseover="rowOn(this)" onmouseout="rowOff(this)" >
			<td><input type="checkbox" name="member_id" value="${fld:s_tuid}"></td>
			<td style="font-size:9pt">
				<span id="s${fld:s_tuid}">${fld:s_name}</span>
			</td>					
		</tr>
		</rows>
	</table>
		<input type="button" value="添加" class="cmd" onclick="selectItem();">
		<input type="button" value="返回" class="cmd" onclick="closePickList();">
	</div>
	
</center>
	
</body>

</html>
